<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>工作维护时间</title>
<link href="../Styles/css.css" rel="stylesheet" type="text/css" />
<script src="../Scripts/My97DatePicker/WdatePicker.js"
	type="text/javascript"></script>
<script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="../Scripts/IndexManager.js" type="text/javascript"></script>
<script src="../Scripts/selectProject.js" type="text/javascript"></script>
<script type="text/javascript">
	function openWin() {
		showModalDialog(
				"/wanda/project/Wd_ht_project_add.do",
				"example04",
				"dialogWidth:600px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center: yes;help:yes;resizable:yes;status:yes")
	}

	function openWin1() {

		/* showModalDialog(
				"/wanda/project/Wd_ht_project_add.do",
				"example04",
				"dialogWidth:600px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center: yes;help:yes;resizable:yes;status:yes") */
			location.href="/wanda/room/Wd_ht_room_toAdd.do" ;	
	}
	
	function openWin2(){
		
		location.href="/wanda/room/Wd_ht_room_toManyAdd.do";
	}

</script>
</head>
<body style="margin-top: 5px; background: #EFF3FF;">
	<form method="post" action="/wanda/room/selectAll.do" id="form1">

		<div id="divOne">
			<div>
				<table width="100%">
					<tr id="ProjectsType">
						<td width="7%">房间名称：</td>
						<td width="15%"><input name="roomCode" type="text"
							id="txtProjectSelect" onclick="selectProductName();"
							style="width:95%;" /></td>
						<td width="10%"><input
							style="border-style: none; border-color: inherit; border-width: 0px; background-image: url('../images/search.gif'); width: 100px; height: 24px;"
							type="submit" value="  " /></td>
							<td align="right" ><input size="20%" type="button" id="btnAdd"
							class="button" value="生成房间" onclick="openWin2()" /></td>
						<td align="right"><input type="button" id="btnAdd"
							class="button" value="添加" onclick="openWin1()" /></td>
					</tr>

				</table>
			</div>
			<div class="cxlb_2" id="indexs">
				<table width="100%" class="tablist">
					<thead>
						<tr>
							<th width="20%">序号</th>
							<th width="20%">所属项目</th>
							<th width="15%">所属楼栋</th>
							<th width="15%">所属单元</th>
							<th width="15%">楼层</th>
							<th width="15%">户型</th>
							<th width="15%">用途</th>
							<th width="15%">房间号</th>
							<th width="15%">实际面积</th>
							<th width="15%">可用面积</th>
							<th width="15%">套内面积单价</th>
							<th width="15%">建筑面积单价</th>
							<th width="15%">房间状态</th>
							<th width="15%">修改人</th>
							<th width="15%">修改时间</th>
							<!-- <th width="">备注</th> -->
							<th width="">操作</th>

						</tr>
					</thead>
					<tbody id="tab">
						<c:forEach var="bean" items="${Wd_ht_roomList }">
							<tr>
								<td width="20%">${bean.roomId }</td>
								<td width="15%">${bean.wd_ht_project.projectName }</td>
								<td width="15%">${bean.wd_ht_build.buildName }</td>
								<td width="15%">${bean.wd_ht_unit.unitCode }</td>
								<td width="15%">${bean.floor }</td>
								<td width="15%">${bean.wd_apartment_layout.apartmentLayout }</td>
								<td width="15%">${bean.wd_purpose.purpose }</td>
								<td width="15%">${bean.roomCode }</td>
								<td width="15%">${bean.buildUpArea }</td>
								<td width="15%">${bean.innerArea }</td>
								<td width="15%">${bean.innerPrice }</td>
								<td width="15%">${bean.unitPrice }</td>
								<td width="15%">${bean.state }</td>
								<td width="15%">${bean.updateUser }</td>
								<%-- <td width="15%">${bean.updateTime }</td> --%>
								<td width="15%"><fmt:formatDate value="${bean.updateTime }" pattern="yyyy-MM-dd "/></td>
								<td width=""><a href="/wanda/room/Wd_ht_room_toUpdate.do?roomId=${bean.roomId }"
									> 修改</a>
									<a href="/wanda/room/Wd_ht_room_delete.do?roomId=${bean.roomId }"
									> 删除</a></td>
							</tr>

						</c:forEach>
						<!--      
                            <tr>
                                <td width="20%">
                                    无锡滨湖万达广场
                                </td>
                                <td width="15%">
                                    10：00</td>
                                <td width="15%">
                                    12：59</td>
                                <td width="15%">
                                    13：00</td>
                                <td width="15%">
                                    22：00</td>
                                <td width="">
                                    <a href="javascript:void(0);" onclick="openWin()">
                                        修改</a>
                                </td>
                            </tr>
                        
                            <tr>
                                <td width="20%">
                                    厦门湖里万达广场
                                </td>
                                <td width="15%">
                                    08：30</td>
                                <td width="15%">
                                    12：00</td>
                                <td width="15%">
                                    13：30</td>
                                <td width="15%">
                                    21：30</td>
                                <td width="">
                                    <a href="javascript:void(0);" onclick="openWin()">
                                        修改</a>
                                </td>
                            </tr>
                        
                            <tr>
                                <td width="20%">
                                    石家庄裕华万达广场
                                </td>
                                <td width="15%">
                                    10：00</td>
                                <td width="15%">
                                    12：00</td>
                                <td width="15%">
                                    13：00</td>
                                <td width="15%">
                                    22：00</td>
                                <td width="">
                                    <a href="javascript:void(0);" onclick="openWin()">
                                        修改</a>
                                </td>
                            </tr>
                        
                            <tr>
                                <td width="20%">
                                    武汉经开万达广场
                                </td>
                                <td width="15%">
                                    10：00</td>
                                <td width="15%">
                                    12：00</td>
                                <td width="15%">
                                    12：05</td>
                                <td width="15%">
                                    18：00</td>
                                <td width="">
                                    <a href="javascript:void(0);" onclick="openWin('WorkingTimeUpdateManager.aspx','27C2F4B706534B4C9FE314FAE274CFD1','340','400')">
                                        修改</a>
                                </td>
                            </tr>
                        
                            <tr>
                                <td width="20%">
                                    上海宝山万达广场
                                </td>
                                <td width="15%">
                                    09：00</td>
                                <td width="15%">
                                    12：00</td>
                                <td width="15%">
                                    13：00</td>
                                <td width="15%">
                                    18：00</td>
                                <td width="">
                                    <a href="javascript:void(0);" onclick="openWin('WorkingTimeUpdateManager.aspx','7AA6FFA534D84485A011989CA50089B2','340','400')">
                                        修改</a>
                                </td>
                            </tr>
                        
                            <tr>
                                <td width="20%">
                                    廊坊万达广场
                                </td>
                                <td width="15%">
                                    09：00</td>
                                <td width="15%">
                                    12：00</td>
                                <td width="15%">
                                    12：05</td>
                                <td width="15%">
                                    22：00</td>
                                <td width="">
                                    <a href="javascript:void(0);" onclick="openWin('WorkingTimeUpdateManager.aspx','22AEF1C29D364D8BAF112BD5A1973C35','340','400')">
                                        修改</a>
                                </td>
                            </tr>
                        
                            <tr>
                                <td width="20%">
                                    北京石景山万达广场
                                </td>
                                <td width="15%">
                                    09：00</td>
                                <td width="15%">
                                    12：00</td>
                                <td width="15%">
                                    13：00</td>
                                <td width="15%">
                                    21：30</td>
                                <td width="">
                                    <a href="javascript:void(0);" onclick="openWin('WorkingTimeUpdateManager.aspx','BBB15961592F4C7CBB5F9BF77DFB4054','340','400')">
                                        修改</a>
                                </td>
                            </tr>
                        
                            <tr>
                                <td width="20%">
                                    北京CBD万达广场
                                </td>
                                <td width="15%">
                                    09：00</td>
                                <td width="15%">
                                    12：00</td>
                                <td width="15%">
                                    13：30</td>
                                <td width="15%">
                                    18：00</td>
                                <td width="">
                                    <a href="javascript:void(0);" onclick="openWin('WorkingTimeUpdateManager.aspx','2CCF75D370D9447EA739D69B16B2F9C8','340','400')">
                                        修改</a>
                                </td>
                            </tr> -->

					</tbody>
					<tr>

					</tr>
				</table>
				<script type="text/javascript">
				<!--
					var Ptr = document.getElementById("tab")
							.getElementsByTagName("tr");
					function pageLoad() {
						for (i = 1; i < Ptr.length + 1; i++) {
							Ptr[i - 1].className = (i % 2 > 0) ? "t1" : "t2";
						}
					}
					window.onload = pageLoad;
					for (var i = 0; i < Ptr.length; i++) {
						Ptr[i].onmouseover = function() {
							this.tmpClass = this.className;
							this.className = "t3";

						};
						Ptr[i].onmouseout = function() {
							this.className = this.tmpClass;
						};
					}
				//-->
				</script>
			</div>
			<div id="pageType">

				<!-- AspNetPager 7.3.2  Copyright:2003-2010 Webdiyer (www.webdiyer.com) -->
				<div id="AspNetPager1" class="anpager"
					style="width:100%;text-align:left;">
					<div align="left" class="anpager" style="width:60%;float:left;">
						<a disabled="disabled" style="margin-right:10px;">首页</a><a
							disabled="disabled" style="margin-right:10px;">上一页</a><span
							class="cpb" style="margin-right:10px;">1</span><a
							disabled="disabled" style="margin-right:10px;">下一页</a><a
							disabled="disabled" style="margin-right:10px;">尾页</a>
					</div>
					<div class="anpager" style="width:40%;float:left;">
						记录总数：<font color="blue"><b>8</b></font> 总页数：<font color="blue"><b>1</b></font>
						当前页：<font color="red"><b>1</b></font>
					</div>
				</div>
				<!-- AspNetPager 7.3.2  Copyright:2003-2010 Webdiyer (www.webdiyer.com) -->


			</div>
		</div>
		<input type="hidden" name="hidProductIdSelect" id="hidProductIdSelect" />
	</form>
</body>
</html>
